﻿
@{
    ViewBag.Title = "应急管理平台";
    Layout = "~/Views/Shared/_LayoutEmergency.cshtml";
    ViewBag.Active = "危险点权重配置";
}

@section css {
    <link type="text/css" href="~/Assets/Styles/libs/sco.message.css" rel="stylesheet" />
}

<div class="nesting main-content" ng-controller="SpecialController" ng-init="
     id='@(Request.QueryString["Id"].IsEmpty() ? "0" : Request.QueryString["Id"])';
     GetDangerPlace(id);
     GetDangerPlaceConfigList(id);
     ">
    <div>
        <div ng-cloak ng-show="PageLoading">
            <div style="text-align: center; padding-top: 140px;">
                <img src="../../Assets/Images/loading.gif" />
            </div>
        </div>

        <div ng-cloak ng-show="!PageLoading">
            <div class="row">
                <div class="col-lg-12">
                    <div class="col-lg-12">
                        <div class="panel panel-info">
                            <div class="panel-heading">
                                <h1 class="panel-title">危险点权重配置</h1>
                            </div>
                            <div class="panel-body">
                                <form role="form" class="form-horizontal" name="frm">
                                    <div class="form-group">
                                        <label class="col-lg-2 control-label">危险点名称</label>
                                        <div class="col-lg-8">
                                            <label class="col-lg-2 control-label">{{DataModel.Location}}-{{DataModel.Name}}</label>
                                        </div>
                                    </div>

                                    <div ng-repeat="x in ConfigDataList">
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">{{x.ConfigName}} 权重</label>
                                            <div class="col-lg-8">
                                                <input type="text" class="form-control" placeholder="权重" maxlength="100" ng-model="x.Percent" required />

                                            </div>
                                        </div>
                                        <div class="form-group">
                                            <label class="col-lg-2 control-label">{{x.ConfigName}} 得分</label>
                                            <div class="col-lg-8">
                                                <input type="text" class="form-control" placeholder="得分" maxlength="100" ng-model="x.Score" required />

                                            </div>
                                        </div>
                                    </div>


                                </form>

                                <div class="form-group">
                                    <button type="submit" class="btn btn-primary col-lg-offset-1" ng-click="SubmitDangerPlaceConfig(ConfigDataList);" ng-cloak><span ng-cloak><span class="glyphicon glyphicon-saved" style="padding-right: 5px"></span>@Resources.WebStringsBase.Save</span></button>
                                    <a style="margin-left: 45px" class="btn btn-default" href="../Emergency/DangerPlace"><span class="glyphicon glyphicon-menu-left" style="padding-right: 5px"></span><span>@Resources.WebStringsBase.Back</span></a>
                                </div>
                            </div>
                        </div>

                    </div>
                </div>
            </div>
        </div>

    </div>



</div>

@section js {
    <script type="text/javascript" src="~/Assets/Scripts/libs/sco.message.js"></script>
    <script type="text/javascript" src="~/Assets/Scripts/pg/Special.js"></script>
    <script type="text/javascript" src="~/Assets/Scripts/libs/moment.min.js"></script>
    <script type="text/javascript" src="~/Assets/Scripts/libs/locales/date/zh-cn.js"></script>
    <script type="text/javascript" src="~/Assets/Scripts/libs/bootstrap-datetimepicker.min.js"></script>
    <script type="text/javascript" src="~/Assets/Scripts/libs/angularjs-datepicker.js"></script>
}